﻿namespace AnimalExercise
{
    using System.Collections;

    public abstract class Animal : ISound
    {
        private byte age;
        private string name;
        private string sex;

        public Animal(string nameOfAnimal, byte ageOfAnimal, string sexOfAnimal)
        {
            this.Name = nameOfAnimal;
            this.Age = ageOfAnimal;
            this.Sex = sexOfAnimal;
        }

        public byte Age
        {
            get
            {
                return this.age;
            }

            set
            {
                this.age = value;
            }
        }

        public string Name
        {
            get
            {
                return this.name;
            }

            set
            {
                this.name = value;
            }
        }

        public string Sex
        {
            get
            {
                return this.sex;
            }

            set
            {
                this.sex = value;
            }
        }

        public abstract void ReleaseSound();
    }
}